﻿import os
import clr
import System

class Output(object): 
    
    FolderList = []
    
    _control = None
    
    def __init__(self, control, settings):        
        self._control = control              
        
    def prepare(self) : 
        def predicate(eventName, args) : return True
        self._control.MessageService.Subscribe(predicate, self.event_callback)
            
    def event_callback(self, id, eventName ,args) :
        self._control.FindName("TextBox1").Text = "%s [%s] [%s] [%s]" % (DateTime.Now, id, eventName, args)
